iOS Custom Fonts
- Add your fonts inside a folder for example
src/assets/fonts/:Quicksand-Bold.ttfQuicksand-Light.ttfQuicksand-Medium.ttfQuicksand-Regular.ttfQuicksand-SemiBold.ttf - Add or edit
react-native.config.jsin the root of your project:module.exports = {project: {ios: {},android: {},},iosAssets: ["./src/assets/fonts"],}; - Then link your assets using
react-native-assetnpm library:Terminal window npx react-native-asset - Use the font:const style = createStyleSheet.create({text: {fontFamily: "Quicksand",},});
- Rebuild and test.